#include<iostream>
#include<vector>
#include<unordered_map>
using namespace std;
int main()
{
	int n;
	cin >> n;
	unordered_map<int,int> ballon;
	for (int i = 0;i < n;i++)
	{
		ballon[i]=0;
	}
	for (int i = 0;i < n;i++)
	{
		int a, b;
		cin >> a >> b;
		for (int j = a-1;j < b;j++)
		{
			ballon[j]++;
		}
	}
	for (int i = 0;i < n;i++)
	{
		cout << ballon[i] << " ";
	}

	return 0;
}